module.exports = options => {
    return async function errorHandler(ctx, next) {
        await next();

        const { status, method, url } = ctx;
        if (status === 404) {
            console.log('errorHandler method:', method, 'url:', url, 'status:', status);
            ctx.errorResult(ctx.message);
        }
    }
};